package com.youshang.controller;

import com.youshang.annotation.AccessLimit;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/home")
@RestController
public class IndexController {

    @AccessLimit(seconds = 30,retryCount = 0)
    @GetMapping("/index")
    public String index(@RequestParam(required = false) String student) {
        System.out.println("调用方法成功。。。。。。");
        return "SUCCESS";
    }
}
